package cn.smbms.dao;

import java.util.List;
import java.util.Map;

import cn.smbms.pojo.User;
import org.apache.ibatis.annotations.Param;
import cn.smbms.pojo.Bill;

public interface BillMapper {
	//模糊查询
	public List<Bill> getById(Bill bill);
	
	public List<Bill> getByName(Bill bill);


	/*	@Param("productName") String productName,
		@Param("providerId") Integer providerId,
		@Param("isPayment") Integer isPayment*/
	public List<Bill> getByProduct(@Param(value = "productName") String productName,
								   @Param(value = "providerId")Integer providerId,
								   @Param(value = "isPayment")Integer isPayment,
								   @Param("currentPageNo") Integer currentPageNo,
								   @Param("pageSize") Integer pageSize);

	Integer getBillCount(@Param(value = "productName") String productName,
						 @Param(value = "providerId")Integer providerId,
						 @Param(value = "isPayment")Integer isPayment);

	Bill getBillById(@Param(value = "id") Integer id);

	Integer delete(@Param(value = "id") Integer id);

	Integer modify(Bill bill);

	Integer add(Bill bill);

	Integer count(@Param("id") Integer  id);


}
